//
//  BookOrderDetailFooterCell.m
//  KuWeiPark
//
//  Created by Kevin Su on 15/5/5.
//  Copyright (c) 2015年 Clief. All rights reserved.
//

#import "BookOrderDetailFooterCell.h"

@implementation BookOrderDetailFooterCell

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)awakeFromNib{
    
    self.cancelBtn.layer.masksToBounds = YES;
    self.cancelBtn.layer.cornerRadius = 5;
    
    self.payBtn.layer.masksToBounds = YES;
    self.payBtn.layer.cornerRadius = 5;
}

- (IBAction)cancelOrder:(id)sender {
    
    if(self.delegate && [self.delegate respondsToSelector:@selector(cancelOrderAction)]){
        
        [self.delegate cancelOrderAction];
    }
}

- (IBAction)payOrder:(id)sender {
    
    if(self.delegate && [self.delegate respondsToSelector:@selector(payOrderAction)]){
        
        [self.delegate payOrderAction];
    }
}


@end
